package com.jwell.panprovider.contract

import com.jwell.cargoapp.ui.base.IBaseView
import com.jwell.driverapp.tools.BaseSubscriber
import com.jwell.panprovider.entity.WaybillInfoBean

/**
 * Created by 76577 on 2018/4/24.
 * 运单详情
 */
class WaybillInfoContract {
    interface View : IBaseView {
        fun showData(data: WaybillInfoBean)

        fun showDataFailed(str: String)

    }

    interface Presenter {
        fun getData(id: Int)
        //撤销
        fun revokeWaybill(id: Int)
        //申请延期
        fun applyDelay(id: Int)
    }

    interface Model {
        fun getData(id: Int, baseSubscriber: BaseSubscriber)
        //撤销
        fun revokeWaybill(id: Int, baseSubscriber: BaseSubscriber)
        //申请延期
        fun applyDelay(id: Int, baseSubscriber: BaseSubscriber)
    }
}